
def sum(beg,end):
    theSum = 0
    for i in range(beg,end+1):
        theSum += i
    print(theSum)

sum (1,100)

